package com.lanlion.porlet.common;

/**
 * 微信红包请求实体
 */
@CommonEntityFileAnnotation(type = "class",name = "WechatRedPackEntity")
public class WechatRedPackEntity {

    //随机字符串，不长于32位
    @CommonEntityFileAnnotation(type = "String",name = "nonce_str")
    private String nonceStr;

    @CommonEntityFileAnnotation(type = "String",name = "sign")
    private String sign;

    //商户订单号（每个订单号必须唯一。取值范围：0~9，a~z，A~Z） 接口根据商户订单号支持重入，如出现超时可再调用。
    @CommonEntityFileAnnotation(type = "String",name = "mch_billno")
    private String mchBillno;

    //微信支付分配的商户号
    @CommonEntityFileAnnotation(type = "String",name = "mch_id")
    private String mchId;

    //微信支付分配的子商户号，服务商模式下必填
    @CommonEntityFileAnnotation(type = "String",name = "sub_mch_id")
    private String subMchId;

    //微信分配的公众账号ID
    @CommonEntityFileAnnotation(type = "String",name = "wxappid")
    private String appid;

    //子商户的appid
    @CommonEntityFileAnnotation(type = "String",name = "msgappid")
    private String subAppid;

    //红包发送者名称:eg 天虹百货
    @CommonEntityFileAnnotation(type = "String",name = "send_name")
    private String sendName;

    //接受红包的用户,填子商户的用户openID
    @CommonEntityFileAnnotation(type = "String",name = "re_openid")
    private String reOpenid;

    //付款金额，单位分
    @CommonEntityFileAnnotation(type = "String",name = "total_amount")
    private int totalAmount;

    //红包发放总人数
    @CommonEntityFileAnnotation(type = "String",name = "total_num")
    private int totalNum;

    //红包祝福语
    @CommonEntityFileAnnotation(type = "String",name = "wishing")
    private String wishing;

    //调用接口的机器Ip地址
    @CommonEntityFileAnnotation(type = "String",name = "client_ip")
    private String clientIp;

    //活动名称
    @CommonEntityFileAnnotation(type = "String",name = "act_name")
    private String actName;

    //备注信息
    @CommonEntityFileAnnotation(type = "String",name = "remark")
    private String remark;

    //发放红包使用场景，红包金额大于200或者小于1元时必传
    //PRODUCT_1:商品促销
    //PRODUCT_2:抽奖
    //PRODUCT_3:虚拟物品兑奖
    //PRODUCT_4:企业内部福利
    //PRODUCT_5:渠道分润
    //PRODUCT_6:保险回馈
    //PRODUCT_7:彩票派奖
    //PRODUCT_8:税务刮奖
    @CommonEntityFileAnnotation(type = "String",name = "scene_id")
    private String sceneId;


    //红包金额设置方式
    //ALL_RAND—全部随机,商户指定总金额和红包发放总人数，由微信支付随机计算出各红包金额
    @CommonEntityFileAnnotation(type = "String",name = "amt_type")
    private String amtType;

    //MCHT:通过商户订单号获取红包信息。
    @CommonEntityFileAnnotation(type = "String",name = "amt_type")
    private String billType;

    //微信分配的公众账号ID（企业号corpid即为此appId），接口传入的所有appid应该为公众号的appid（在mp.weixin.qq.com申请的），
    // 不能为APP的appid（在open.weixin.qq.com申请的）
    @CommonEntityFileAnnotation(type = "String",name = "appid")
    private String queryAppid;

    public String getBillType() {
        return billType;
    }

    public void setBillType(String billType) {
        this.billType = billType;
    }

    public String getQueryAppid() {
        return queryAppid;
    }

    public void setQueryAppid(String queryAppid) {
        this.queryAppid = queryAppid;
    }

    public String getAmtType() {
        return amtType;
    }

    public void setAmtType(String amtType) {
        this.amtType = amtType;
    }

    public String getNonceStr() {
        return nonceStr;
    }

    public void setNonceStr(String nonceStr) {
        this.nonceStr = nonceStr;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getMchBillno() {
        return mchBillno;
    }

    public void setMchBillno(String mchBillno) {
        this.mchBillno = mchBillno;
    }

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public String getSubMchId() {
        return subMchId;
    }

    public void setSubMchId(String subMchId) {
        this.subMchId = subMchId;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getSubAppid() {
        return subAppid;
    }

    public void setSubAppid(String subAppid) {
        this.subAppid = subAppid;
    }

    public String getSendName() {
        return sendName;
    }

    public void setSendName(String sendName) {
        this.sendName = sendName;
    }

    public String getReOpenid() {
        return reOpenid;
    }

    public void setReOpenid(String reOpenid) {
        this.reOpenid = reOpenid;
    }

    public int getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(int totalAmount) {
        this.totalAmount = totalAmount;
    }

    public int getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(int totalNum) {
        this.totalNum = totalNum;
    }

    public String getWishing() {
        return wishing;
    }

    public void setWishing(String wishing) {
        this.wishing = wishing;
    }

    public String getClientIp() {
        return clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }

    public String getActName() {
        return actName;
    }

    public void setActName(String actName) {
        this.actName = actName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getSceneId() {
        return sceneId;
    }

    public void setSceneId(String sceneId) {
        this.sceneId = sceneId;
    }
}
